﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LabEquipment.aspx.cs" Inherits="WebUI.LabManage.LabEquipment" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" />
    <ext:Panel runat="server" ID="Panel1" BodyPadding="5px" EnableBackgroundColor="true"
        ShowBorder="false" Layout="Anchor" ShowHeader="true" Title="设备管理">
        
        <Items>
            <ext:Form ID="Form2" runat="server" LabelWidth="90px" Height="104px" EnableBackgroundColor="true"
                ShowHeader="false" ShowBorder="true" BodyPadding="10px" AutoWidth="true">
                <Toolbars>
                    <ext:Toolbar ID="Toolbar1" runat="server">
                        <Items>
                            <ext:Button runat="server" ID="bnSearch" Text="查询" Icon="Reload" Type="Submit" OnClick="bnSearch_Click">
                            </ext:Button>
                            <ext:ToolbarSeparator ID="ToolbarSep1" runat="server">
                            </ext:ToolbarSeparator>
                            <ext:Button runat="server" ID="bnReset" Text="重置" Icon="ArrowIn" OnClick="bnReset_Click">
                            </ext:Button>
                            <ext:ToolbarFill ID="ToolbarFill1" runat="server">
                            </ext:ToolbarFill>
                            <ext:Button runat="server" ID="bnNew" Text="新增" Icon="Add">
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Rows>
                    <ext:FormRow>
                        <Items>
                            <ext:TextBox runat="server" ID="tb_pNO" Label="资产编号" TabIndex="1">
                            </ext:TextBox>
                            <ext:TextBox runat="server" ID="tb_name" Label="设备名称" TabIndex="2">
                            </ext:TextBox>
                            <ext:TextBox runat="server" ID="tb_saller" Label="销售商" TabIndex="3">
                            </ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:DropDownList runat="server" ID="dl_type" Label="设备类型" TabIndex="4">
                            </ext:DropDownList>
                            <ext:DropDownList runat="server" ID="dl_status" Label="状态" TabIndex="5">
                            </ext:DropDownList>
                            <ext:DropDownList runat="server" ID="dl_lab" Label="所属实验室" TabIndex="6">
                            </ext:DropDownList>
                        </Items>
                    </ext:FormRow>
                </Rows>
            </ext:Form>
            <ext:Grid runat="server" ID="Grid1" AnchorValue="100% -104px" ShowHeader="false"
                EnableBackgroundColor="true" EnableRowNumber="true" AllowPaging="true" OnPageIndexChange="Grid1_PageIndexChange"
                DataKeyNames="ID,propertyNO" PageSize="25" OnRowDoubleClick="Grid1_RowClick" EnableRowDoubleClick="true"
                OnRowCommand="Grid1_RowCommand" >
                <Columns>
                    <ext:BoundField DataField="propertyNO" HeaderText="资产编号" />
                    <ext:BoundField DataField="Name" HeaderText="设备名称" Width="210px" />
                    <ext:BoundField DataField="typeParam.value" HeaderText="设备类型" />
                    <ext:BoundField DataField="usetypeParam.value" HeaderText="用途" />
                    <ext:BoundField DataField="seller" HeaderText="经销商" Width="180px" />
                    <ext:BoundField DataField="buydate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="购置日期" Width="150px" />
                    <ext:BoundField DataField="count" HeaderText="数量" Width="40px" />
                    <ext:BoundField DataField="price" HeaderText="价格" DataFormatString="{0:C}" />
                    <ext:BoundField DataField="Lab.LabName" HeaderText="所属实验室" Width="150px" />
                    <ext:BoundField DataField="statusParam.value" HeaderText="状态" Width="80px" />
                    <ext:BoundField DataField="manager" HeaderText="负责人" Width="80px" />
                    <ext:WindowField ColumnID="ViewField" HeaderText="查看" Width="40px" WindowID="window_view" Icon="Zoom"
                        ToolTip="查看设备信息" DataTextFormatString="{0}" DataIFrameUrlFields="ID" DataIFrameUrlFormatString="LabEquipmentEdit.aspx?action=view&id={0}"
                        DataWindowTitleField="propertyNO" DataWindowTitleFormatString="查看 - 资产编号：{0}" />
                    <ext:WindowField ColumnID="EditField" HeaderText="编辑" Width="40px" WindowID="window" Icon="TableEdit"
                        ToolTip="编辑" DataTextFormatString="{0}" DataIFrameUrlFields="ID" DataIFrameUrlFormatString="LabEquipmentEdit.aspx?action=edit&id={0}"
                        DataWindowTitleField="propertyNO" DataWindowTitleFormatString="编辑 - 资产编号：{0}" />
                     <ext:LinkButtonField Icon="TableDelete" HeaderText="删除" ToolTip="删除" ConfirmText="确认删除？" CommandName="Del" />
                </Columns>
            </ext:Grid>
        </Items>
    </ext:Panel>
    <ext:Window runat="server" ID="window" Popup="false" EnableIFrame="true" Title="设备信息管理"
        IFrameUrl="about:blank" Target="Top" IsModal="true" Width="800px" Height="400px"
        EnableAjaxLoading="true">
    </ext:Window>
    <ext:Window runat="server" ID="window_view" Popup="false" EnableIFrame="true" Title="设备信息查看"
        IFrameUrl="about:blank" Target="Top" IsModal="true" Width="840px" Height="590px"
        EnableAjaxLoading="true">
    </ext:Window>
    </form>
</body>
</html>
